<template>
  <div class="content-actioners">
    <div class="text" v-if="actioners && actioners.length">
      发起人：
      <a v-for="(a, k) in actioners" :key="a.id">
        {{ a.name }}
        <template v-if="k != actioners.length - 1">,</template>
      </a>
    </div>
    <div class="text" v-else>所有人</div>
  </div>
</template>

<script setup lang="ts">
import type { Actioner } from '../../types'
defineProps({
  actioners: {
    type: Object as () => Actioner[],
    default: () => {
      return []
    }
  }
})
</script>
